package vn.vietel.pms.entity;

import static org.jboss.seam.ScopeType.SESSION;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Name("attributesName")
@Scope(SESSION)
@Table(name = "AttributesName")

public class AttributesName implements Serializable {
	private static final long serialVersionUID = 3408178123240280716L;
	private Long id;
	private String Name;
	private String Caption;
	private String useForObjects;

	public AttributesName(Long id, String name, String caption,
			String useForObjects) {
		super();
		this.id = id;
		Name = name;
		Caption = caption;
		this.useForObjects = useForObjects;
	}

	public AttributesName() {
		super();
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull
	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getCaption() {
		return Caption;
	}

	public void setCaption(String caption) {
		Caption = caption;
	}

	public String getUseForObjects() {
		return useForObjects;
	}

	public void setUseForObjects(String useForObjects) {
		this.useForObjects = useForObjects;
	}

}
